package com.quanyan.user.model.vo.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * Created by zhang on 16/11/17.
 */
public class ReqUserChangePassword implements Serializable {

    @NotNull
    private String phone;

    //type=1:密码修改密码;type=2:验证码修改密码;type=3:无密码用户修改密码
    @Size(min = 1,max = 3)
    private int type;

    private String oldPassword;

    @NotNull
    private String newPassword;

    private String validCode;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getValidCode() {
        return validCode;
    }

    public void setValidCode(String validCode) {
        this.validCode = validCode;
    }
}
